home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
pascal
/
tegl6b.zip
/
INTROPAK.EXE
/
lha
/
BUTTON1.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1991-07-16
|
668b
|
31 lines
{-- button1.pas}
{$F+}
USES teglunit,teglmain;
VAR ifs : ImageStkPtr;
function cancelevent(frame: ImageStkPtr; mouse: MsClickPtr): Word;
BEGIN
{-- if true then the button has been released }
if VisualSquareButtonPress(frame,mouse) then
begin
{-- this will pop the button back up }
ReleaseSquareButton(frame,mouse);
{-- and dispose of the frame. }
dropstackimage(ifs);
end;
END;
BEGIN
easytegl;
easyout;
PushImage(50,50,200,150);
ShadowBox(50,50,200,150);
ifs := StackPtr;
DefineSquareButtonText(ifs,30,35,120,65,5,5,'PRESS ME',cancelevent);
TeglSupervisor;
END.